package com.awanp3.nimbus.demo.service;

import com.awanp3.nimbus.common.mybatis.core.page.PageQuery;
import com.awanp3.nimbus.common.mybatis.core.page.TableDataInfo;
import com.awanp3.nimbus.demo.domain.bo.DemoLeaveBo;
import com.awanp3.nimbus.demo.domain.vo.DemoLeaveVo;

import java.util.List;

/**
 * 请假Service接口
 *
 * @author nimbus
 */
public interface IDemoLeaveService {

    /**
     * 查询请假
     */
    DemoLeaveVo queryById(Long id);

    /**
     * 查询请假列表
     */
    TableDataInfo<DemoLeaveVo> queryPageList(DemoLeaveBo bo, PageQuery pageQuery);

    /**
     * 查询请假列表
     */
    List<DemoLeaveVo> queryList(DemoLeaveBo bo);

    /**
     * 新增请假
     */
    DemoLeaveVo insertByBo(DemoLeaveBo bo);

    /**
     * 修改请假
     */
    DemoLeaveVo updateByBo(DemoLeaveBo bo);

    /**
     * 校验并批量删除请假信息
     */
    Boolean deleteWithValidByIds(List<Long> ids);
}
